AppleAvsPlatformRuntime

internal object AppleAvsPlatformRuntime

Owns AVS's single process event loop on iOS. The bridge calls setup then run once, under its start lock.

In the app process, AVSFlowManager starts and owns the loop, and wcall only initializes on top of it, as in the native iOS client. Starting wcall's own loop as well makes AVSFlowManager's loop exit at once and drop the process media-system reference. Releasing the last account handle then frees the media system while the media manager's activation observer still uses it.

App extensions never create UIKit media objects. They keep wcall's own loop.

Functions

Link copied to clipboard
fun flowManager(): AVSFlowManager?

The runtime's flow manager, or null when AVS failed to start or this process has no media runtime.

Link copied to clipboard
fun mediaManager(): AVSMediaManager?
Link copied to clipboard
fun run(): Int
Link copied to clipboard
fun setup(): Int